package com.example.flshtarvel.entity;

public class PageResult {
    private int count;//总记录条数
    private int currentPage;//当前页数
    private int pageSize;//每页显示记录数
    private int pageCount;//总页数

    public int getCount() {
        return count;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public void setPageCount(int count,int size) {
        if(count%size==0){
            this.pageCount = count/size;
        }else{
            this.pageCount = count/size+1;
        }
    }
}
